package com.hksj.Intelligentmanagement.dto;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.NotBlank;

import java.util.List;

/**
 * @Author zengke
 * @ClassName NurseDTO
 * @Date 2023/3/30 15:13
 * @Version 1.0
 */

@Data
@ApiModel
@EqualsAndHashCode(callSuper = true)
public class NurseDTO extends BaseDTO{
    //id
    @ApiModelProperty("id")
    private String id;

    //工号
    @ApiModelProperty("工号")
    private Integer employeeNumber;

    //姓名
    @ApiModelProperty("姓名")
    @TableField("`name`")
    @NotBlank(message = "姓名不为空",groups = Create.class )
    private String name;

    //性别
    @ApiModelProperty("性别")
    private String sex;

    @ApiModelProperty("护士等级id")
    private String levelId;

    //联系方式
    @ApiModelProperty("联系方式")
    private String phoneNumber;

    //描述
    @ApiModelProperty("描述")
    private String description;

    //状态
    @ApiModelProperty("状态")
    private String status;

    //排班时间
    @ApiModelProperty("排班时间")
    private String scheduleTime;

    //手术时间
    @ApiModelProperty("手术时间")
    private String operationTime;

    @ApiModelProperty("人员类型  1 = 护士  2 = 麻醉")
    @JsonIgnore
    private Integer type;

    @ApiModelProperty("指导医生id")
    private String preceptorId;

    @ApiModelProperty("区域id列表")
    private List<String> regions;

    public interface Create{

    }

    public interface Update{

    }



}
